import  axios  from '../utils/request'

export async function getVipUserList(pageNum:any) {
  const res= await axios.get('/vipUserList',{params:{pageNum}})
  return res
}

export async function deleteUser(id:number) {
    const res= await axios.delete('deleteVipUser',{params:{id}})
    return res
}
export async function getVipUserInfo(id:any){
    const res=await axios.get('vipUserInfo',{params:{id}})
    return res
 }
 export async function updateVipUser(user:any){
    const res=await axios.post('updateVipUser',user)
    return res
 }

 export async function addVipUser(user:any){
    const res=await axios.post('addVipUser',user)
    return res
 }
 export async function exportVipUser(){
    const res=await axios.get('exportUser', { responseType: 'blob' })
    return res
}
export async function deleteBatchVip(ids:any){
    const res=await axios.delete(`deleteUserBatch/${ids}`)
    return res
}


